#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int process(float x, float y)
{
    int i = 0;
    float s = .5 * 3.14 * (x*x + y*y);

    while(s > 50 * i)
    {
        i++;
    }

    return i;
}
int main()
{
    int n = 0, i = 0;
    float x = 0.0, y = 0.0;
    int *p;

    scanf("%d", &n);

    p = (int*)malloc(n * sizeof(int));
    for(i = 0; i < n; i++)
    {
        scanf("%f%f", &x, &y);
        p[i] = process(x, y);
    }

    for(i = 0; i < n; i++)
    {
        printf("Property %d: This property will begin eroding in year %d.\r\n", i+1, p[i]);
    }
    printf("END OF OUTPUT.");
    return 0;
}
